/**
 * @author swiip
 * Describes the First Component
 */

$C.Extend(["Components.firstComponent"], {
	name:"Components.secondComponent",
	/**
	 * Set up the Component dependencies
	 * The component won't launch main() unless
	 *  every dependencies in the setup are available
	 */
	setup:{
		dependencies: {
			components:{},
			lib:[]
		}
	},
	/**
	 * Start the Component itself
	 */
	main: function() {
		this.fireHello("Hello, World!");
		Logger.log("First component loaded !!");
	},
	onHelloWorld: function(name,data) {
		Logger.warn("event "+name+" called. Data:"+data);
	},
	onLibrary: function(name,data) {
		this.onHello(name,data);
	},
	fireHelloWorld: function(){Logger.warn("Cette fonction ne devrait pas etre appelee!")}
});